//react实质上就是如下的一个对象
const myCreateElement = (type,props,...children) => {
    let obj = {
        type: type,
        props:{
            ...props,
            children:children
        }
    }
    obj.props.children = children;
    return obj;
}